package com.school_admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2024-03-18
 */
@TableName("sc_like")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Like implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 点赞用户id
     */
    private String uid;
    /**
     * 帖子id
     */
    private String postId;

    /**
     * 是否删除
     */
    private Integer deleted;
}
